package com.blandware.atleap.webapp.form.core;

import javax.servlet.http.HttpServletRequest;
import com.blandware.atleap.webapp.form.BaseForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.upload.FormFile;
import org.apache.struts.upload.MultipartRequestHandler;
import java.util.Map;
import java.util.HashMap;

/**
 * @struts.form name="roleForm" 
 */
public  class RoleForm
    extends    BaseForm
    implements java.io.Serializable
{

    protected String name;

    protected String title;

    protected String description;

    protected String version;

    /** Default empty constructor. */
    public RoleForm() {}

    public String getName()
    {
        return this.name;
    }

   /**
    * @struts.validator type="required"
    * @struts.validator type="mask" msgkey="core.commons.errors.identifierAllowingCapitals"
    * @struts.validator-args arg0resource="core.role.form.name"
    * @struts.validator-var name="mask" value="${identifierAllowingCapitals}"
    */
    public void setName(String name)
    {
        this.name = name;
    }

    public String getTitle()
    {
        return this.title;
    }

   /**
    * @struts.validator type="required"
    * @struts.validator-args arg0resource="core.role.form.title"
    */
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getDescription()
    {
        return this.description;
    }

   /**
    */
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getVersion()
    {
        return this.version;
    }

   /**
    */
    public void setVersion(String version)
    {
        this.version = version;
    }

    /**
     * @see org.apache.struts.action.ActionForm#reset(org.apache.struts.action.ActionMapping,
     *                                                javax.servlet.http.HttpServletRequest)
     */
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        // reset any boolean data types to false

        // reset all linking properties to null

// reset all mapped properties to default values

    }

}
